/**
 * Public styles for OptiSud Classified Ads.
 * 
 * Styles matching Store & Brand Locator plugin design with unique selectors.
 *
 * @package OptiSud_Classified_Ads
 */

/* ========================================
   CSS Variables - Use SBL variables for consistency
   ======================================== */

:root {
  --sbl-primary-color: #667eea;
  --sbl-secondary-color: #764ba2;
}

/* ========================================
   Base Font Family - Matching Store Brand Locator
   ======================================== */

.osca-brand-directory-wrapper,
.osca-submission-form-wrapper,
.osca-my-ads-wrapper,
.osca-single-ad-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* ========================================
   Brand Directory / Ads Listing Styles
   ======================================== */

/* Brand Directory Wrapper */
.osca-brand-directory-wrapper {
  max-width: 1270px;
  margin: 0 auto;
  padding: 20px;
}

/* Ads Wrapper - inherits from brand directory wrapper */
.osca-ads-wrapper {
  padding: 20px;
}

/* Directory Header */
.osca-directory-header {
  background: #0052a1;
  padding: 10px 20px 10px;
  text-align: left;
  color: #fff;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.osca-directory-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.osca-directory-header-icon svg {
  color: #fff;
}

.osca-directory-title {
  margin: 0 0 0px 0;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  position: relative;
  text-align: left;
  z-index: 1;
}

.osca-directory-subtitle,
p.osca-directory-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Directory Container - White Box */
.osca-directory-container {
  background: #fff !important;
  border-radius: 0 0 16px 16px !important;
  overflow: hidden;
}

.osca-ads-wrapper .osca-directory-container {
  background: #fff !important;
  border-radius: 0 0 16px 16px !important;
}

/* Directory Controls */
.osca-directory-controls {
  background: #f8f9fa !important;
  padding: 25px 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
}

.osca-ads-wrapper .osca-directory-controls {
  background: #f8f9fa !important;
}

.osca-directory-controls > * {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.osca-directory-controls .osca-directory-sort {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap;
  height: 48px !important;
}

.osca-directory-controls .osca-sort-label {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1 !important;
}

.osca-directory-controls .osca-sort-select {
  margin: 0 !important;
  align-self: center !important;
  height: 48px !important;
  padding: 12px 40px 12px 15px !important;
  box-sizing: border-box !important;
}

.osca-directory-search {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.osca-directory-search .osca-search-icon {
  position: absolute;
  left: 16px;
  color: #999;
  pointer-events: none;
  z-index: 1;
}

.osca-directory-search .osca-search-input {
  width: 100%;
  padding: 12px 45px 12px 48px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  margin: 0;
}

.osca-directory-search .osca-search-input:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.osca-directory-search .osca-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 1;
}

.osca-directory-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
}

.osca-sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  height: auto;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.osca-sort-label svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.osca-sort-select {
  padding: 12px 40px 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  color: #333;
  font-weight: 500;
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  vertical-align: middle;
}

.osca-sort-select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.osca-sort-select option {
  padding: 10px 15px;
  color: #333;
}

.osca-directory-view-toggle {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  height: 48px;
  box-sizing: border-box;
  align-items: center;
}

.osca-view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  box-sizing: border-box;
  margin: 0;
}

.osca-view-btn.active {
  background: var(--sbl-primary-color);
  color: #fff;
}

/* Directory Info */
.osca-directory-info {
  padding: 15px 40px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.osca-results-count {
  font-size: 14px;
  color: #666;
}

.osca-results-count strong {
  color: var(--sbl-primary-color);
  font-weight: 700;
}

.osca-per-page-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.osca-per-page-selector label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.osca-per-page-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  margin: 0;
}

.osca-per-page-select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Brand Directory */
.osca-brand-directory {
  padding: 40px;
  background: #fff;
  margin-bottom: 3rem;
}

.osca-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

.osca-brands-grid.osca-view-list {
  grid-template-columns: 1fr;
  gap: 20px;
}

.osca-brand-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.osca-brands-grid.osca-view-list .osca-brand-card {
  display: flex;
  align-items: stretch;
  min-height: 160px;
}

.osca-brand-card-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}

.osca-brands-grid.osca-view-list .osca-brand-card-inner {
  flex-direction: row;
  text-align: left;
  align-items: center;
}

.osca-brand-card-logo {
  text-align: center;
  width: 100%;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.osca-brands-grid.osca-view-list .osca-brand-card-logo {
  width: 120px;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osca-brand-card-logo img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.osca-brands-grid.osca-view-list .osca-brand-card-logo img {
  max-height: 80px;
  width: auto;
  height: auto;
}

.osca-brand-card-content {
  flex: 1;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.osca-brands-grid.osca-view-list .osca-brand-card-content {
  text-align: left;
  flex: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: none !important;
}

.osca-brand-card-title {
  margin-bottom: 12px;
}

.osca-brand-card-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.osca-brand-card-title h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.osca-brands-grid.osca-view-list .osca-brand-card-title {
  margin-bottom: 10px;
}

.osca-brands-grid.osca-view-list .osca-brand-card-title h3 {
  font-size: 20px;
  margin-bottom: 0;
  line-height: 1.2;
}

/* No Results */
.osca-no-results {
  text-align: center;
  padding: 60px 40px;
  background: #f8f9fa;
  border-radius: 16px;
  margin: 40px 0;
}

.osca-no-results svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #999;
}

.osca-no-results h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
}

.osca-no-results p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Pagination */
.osca-pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.osca-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  vertical-align: middle;
  min-height: 44px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.osca-pagination .page-numbers.current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.osca-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  padding: 10px 8px;
  min-width: auto;
}

/* Responsive Design */
/* Flatsome theme breakpoints - migrated to plugin */
@media screen and (max-width: 849px) {
  .osca-ads-wrapper .osca-directory-controls {
    padding: 15px !important;
  }
}

@media screen and (max-width: 768px) {
  .osca-brand-directory-wrapper {
    padding: 15px;
  }

  .osca-ads-wrapper {
    padding: 15px;
  }

  .osca-directory-header {
    padding: 13px 20px;
    border-radius: 16px 16px 0 0;
  }

  .osca-directory-container {
    border-radius: 0 0 16px 16px;
  }

  .osca-directory-title {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 0px 0;
  }

  .osca-directory-subtitle,
  p.osca-directory-subtitle {
    font-size: 16px;
  }

  .osca-directory-controls {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .osca-ads-wrapper .osca-directory-controls {
    padding: 15px !important;
  }

  .osca-directory-search {
    width: 100%;
    min-width: auto;
  }

  .osca-directory-sort {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: auto !important;
  }

  .osca-sort-label {
    width: 100%;
    margin-bottom: 0;
  }

  .osca-category-search-wrapper {
    width: 100%;
  }

  .osca-sort-select {
    width: 100%;
    min-width: auto;
  }

  .osca-directory-view-toggle,
  .osca-ads-wrapper .osca-directory-view-toggle {
    display: none !important;
  }

  .osca-directory-info {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .osca-per-page-selector {
    margin-top: 0;
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
  }

  .osca-per-page-selector label {
    white-space: nowrap;
  }

  .osca-per-page-select {
    min-width: 80px;
    width: auto;
    flex: 0 0 auto;
  }

  .osca-ads-wrapper .osca-per-page-selector {
    width: auto;
    justify-content: flex-start;
  }

  .osca-ads-wrapper .osca-per-page-select {
    min-width: 80px;
    width: auto;
    flex: 0 0 auto;
  }

  .osca-brand-directory {
    padding: 20px 15px;
  }

  .osca-brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

/* Flatsome theme breakpoint - migrated to plugin */
@media screen and (max-width: 549px) {
  .osca-ads-wrapper .osca-directory-controls {
    padding: 15px !important;
    padding-bottom: 3rem !important;
  }
}

@media screen and (max-width: 480px) {
  .osca-brand-directory-wrapper {
    padding: 12px;
  }

  .osca-ads-wrapper {
    padding: 12px;
  }

  .osca-directory-header {
    padding: 13px 15px;
    border-radius: 16px 16px 0 0;
  }

  .osca-directory-container {
    border-radius: 0 0 16px 16px;
  }

  .osca-directory-title {
    font-size: 20px;
    font-weight: 300;
    margin: 0 0 0px 0;
  }

  .osca-directory-subtitle,
  p.osca-directory-subtitle {
    font-size: 14px;
  }

  .osca-directory-controls {
    padding: 12px;
    gap: 12px;
    padding-bottom: 3rem !important;
  }

  .osca-ads-wrapper .osca-directory-controls {
    padding: 12px !important;
    padding-bottom: 3rem !important;
  }

  .osca-directory-sort {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    height: auto !important;
  }

  .osca-sort-label {
    width: 100%;
    font-size: 13px;
  }

  .osca-sort-select {
    font-size: 14px;
    padding: 10px 35px 10px 12px;
  }

  .osca-directory-view-toggle,
  .osca-ads-wrapper .osca-directory-view-toggle {
    display: none !important;
  }

  .osca-view-btn {
    padding: 10px;
  }

  .osca-directory-info {
    padding: 12px;
    font-size: 13px;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .osca-results-count {
    font-size: 14px;
  }

  .osca-per-page-selector {
    font-size: 13px;
    width: auto;
    justify-content: flex-start;
  }

  .osca-per-page-select {
    font-size: 13px;
    padding: 8px 30px 8px 10px;
    min-width: 80px;
    width: auto;
    flex: 0 0 auto;
  }

  .osca-ads-wrapper .osca-per-page-selector {
    width: auto;
    justify-content: flex-start;
  }

  .osca-ads-wrapper .osca-per-page-select {
    min-width: 80px;
    width: auto;
    flex: 0 0 auto;
  }

  .osca-brand-directory {
    padding: 15px 12px;
  }

  .osca-ads-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .osca-ad-card {
    border-radius: 12px;
  }

  .osca-ad-image {
    height: 140px;
  }

  .osca-ad-image img {
    border-radius: 12px;
  }

  .osca-ad-content {
    padding: 12px;
  }

  .osca-ad-title {
    font-size: 13px;
    margin: 0 0 6px 0;
    line-height: 1.2;
  }

  .osca-ad-title a {
    -webkit-line-clamp: 2;
  }

  .osca-ad-category {
    padding: 3px 8px;
    font-size: 9px;
    margin-bottom: 6px;
    border-radius: 12px;
  }

  .osca-ad-meta {
    gap: 4px;
    margin: 8px 0 0 0;
    padding: 8px 0 0 0;
  }

  .osca-ad-meta > div {
    font-size: 11px;
    gap: 6px;
  }

  .osca-ad-meta svg {
    width: 12px;
    height: 12px;
  }

  .osca-ad-price {
    font-size: 14px;
    margin-top: 6px;
    padding-top: 6px;
  }

  .osca-ad-date {
    font-size: 10px;
    margin-top: 4px;
  }

  .osca-ad-date svg {
    width: 11px;
    height: 11px;
  }

  .osca-brands-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ========================================
   Ad-Specific Styles
   ======================================== */

/* Reduce spacing in directory sections */
.osca-ads-wrapper .osca-directory-info {
  padding: 10px 20px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media screen and (max-width: 768px) {
  .osca-ads-wrapper .osca-directory-info {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.osca-ads-wrapper .osca-per-page-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-top: 10px
}

.osca-ads-wrapper .osca-per-page-selector label {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.osca-ads-wrapper .osca-per-page-select {
  height: 36px;
  padding: 6px 10px;
  box-sizing: border-box;
  line-height: 1.5;
  margin: 0;
  min-width: 80px;
  width: auto;
}

.osca-ads-wrapper .osca-directory-controls {
  padding: 25px 40px;
  gap: 12px;
  align-items: center;
}

/* Ensure all controls are vertically aligned */
.osca-ads-wrapper .osca-directory-controls > * {
  display: flex;
  align-items: center;
  min-height: 48px;
}

/* Fix search input alignment */
.osca-ads-wrapper .osca-directory-search {
  height: 48px;
  align-items: center;
}

.osca-ads-wrapper .osca-directory-search .osca-search-input {
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  margin: 0;
}

/* Fix category sort alignment */
.osca-ads-wrapper .osca-directory-sort {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap;
  height: 48px !important;
}

.osca-ads-wrapper .osca-directory-sort .osca-sort-label {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.osca-ads-wrapper .osca-directory-sort .osca-sort-select,
.osca-ads-wrapper .osca-directory-sort .osca-category-search-wrapper {
  margin: 0 !important;
  align-self: center !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.osca-ads-wrapper .osca-directory-sort .osca-category-trigger {
  height: 48px !important;
  box-sizing: border-box !important;
}

/* Fix view toggle alignment */
.osca-ads-wrapper .osca-directory-view-toggle {
  height: 48px;
  box-sizing: border-box;
  align-items: center;
}

.osca-ads-wrapper .osca-brand-directory {
  padding: 0px;
  margin-bottom: 45px;
}

.osca-ads-wrapper .osca-results-count {
  font-size: 14px;
}

/* My Ads specific directory info spacing */
.osca-my-ads-wrapper .osca-directory-info {
  padding: 10px 20px;
  margin-bottom: 0;
}

.osca-my-ads-wrapper .osca-results-count {
  font-size: 14px;
}

.osca-my-ads-wrapper .osca-per-page-selector {
  gap: 8px;
}

.osca-my-ads-wrapper .osca-per-page-select {
  padding: 6px 10px;
  font-size: 12px;
  min-width: 70px;
}

.osca-ad-category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea),
    var(--sbl-secondary-color, #764ba2)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.osca-ad-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}

.osca-ad-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.osca-ad-meta > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.osca-ad-meta svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
}

.osca-ad-date {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
}

/* Enhanced Professional Ad Card Styles */
.osca-ads-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* List View Styles */
.osca-ads-grid.osca-view-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1200px) {
  .osca-ads-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }
}

@media (max-width: 1024px) {
  .osca-ads-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .osca-ads-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .osca-ads-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.osca-ad-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.osca-ad-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* List View Card Styles */
.osca-ads-grid.osca-view-list .osca-ad-card {
  display: flex;
  align-items: stretch;
  min-height: 160px;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
}

.osca-ad-card-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  width: 100%;
}

/* List View Inner Layout */
.osca-ads-grid.osca-view-list .osca-ad-card-inner {
  flex-direction: row;
  align-items: stretch;
  min-height: 160px;
}

.osca-ad-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* List View Image Styles */
.osca-ads-grid.osca-view-list .osca-ad-image {
  width: 200px;
  min-width: 200px;
  height: auto;
  min-height: 160px;
  max-height: none;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  border-radius: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.osca-ads-grid.osca-view-list .osca-ad-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  text-decoration: none;
  position: relative;
}

.osca-ads-grid.osca-view-list .osca-ad-image::after {
  display: none;
}

.osca-ads-grid.osca-view-list .osca-ad-image img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  transition: transform 0.4s ease;
  display: block;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.osca-ads-grid.osca-view-list .osca-ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.osca-ads-grid.osca-view-list .osca-ad-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.osca-ad-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.osca-ad-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.02) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.osca-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  border-radius: 20px 20px 20px 20px;
  padding-bottom: 20px;
}

.osca-ad-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.06) 0%,
    rgba(118, 75, 162, 0.06) 100%
  );
  color: #bbb;
  transition: all 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.osca-ad-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(102, 126, 234, 0.03) 10px,
    rgba(102, 126, 234, 0.03) 20px
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.osca-ad-placeholder svg {
  opacity: 0.35;
  transition: all 0.4s ease;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.osca-ad-placeholder-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.osca-ad-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  margin-top: -12px;
  z-index: 1;
}

/* List View Content Styles */
.osca-ads-grid.osca-view-list .osca-ad-content {
  padding: 14px 18px;
  text-align: left;
  justify-content: center;
  flex: 1;
}

.osca-ad-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.osca-ad-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List View Title */
.osca-ads-grid.osca-view-list .osca-ad-title {
  font-size: 16px;
  margin-bottom: 6px;
  -webkit-line-clamp: 1;
  line-height: 1.2;
}

.osca-ad-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  color: #fff;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.osca-ad-excerpt {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List View Excerpt */
.osca-ads-grid.osca-view-list .osca-ad-excerpt {
  -webkit-line-clamp: 2;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.osca-ad-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0px;
  padding: 0px;
  border-top: 1px solid #f0f0f0;
}

/* List View Meta */
.osca-ads-grid.osca-view-list .osca-ad-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  margin-bottom: 6px;
  border-top: none;
}

.osca-ad-contact,
.osca-ad-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #495057;
  font-weight: 500;
}

.osca-ad-meta svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
  width: 14px;
  height: 14px;
}

.osca-ad-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--sbl-primary-color, #667eea);
  margin-top: auto;
  padding-top: 8px;
  border-top: 2px solid #f8f9fa;
  display: flex;
  align-items: center;
}

/* Remove any dollar signs and ensure only Euro symbol */
.osca-ad-price span::before,
.osca-ad-price::before,
.osca-ad-price span::after {
  content: none !important;
  display: none !important;
}

.osca-ad-price span {
  display: inline-block;
}

/* Remove dollar sign if added by theme or other CSS - use text manipulation */
.osca-ad-price span:first-child::before {
  content: none !important;
}

/* Force remove any $ symbols using JavaScript will be needed, but CSS can hide */
.osca-ad-price span {
  text-transform: none;
}

/* Override any theme styles that add $ */
.osca-ad-price * {
  text-indent: 0 !important;
}

/* Ensure span content doesn't have $ prepended */
.osca-ad-price span {
  position: relative;
}

/* Remove $ if it appears before the span */
.osca-ad-price::before {
  content: "" !important;
  display: none !important;
}

/* List View Price */
.osca-ads-grid.osca-view-list .osca-ad-price {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 20px;
  font-weight: 700;
}

/* Removed SVG icon - now using text "€" */

.osca-ad-date {
  font-size: 11px;
  color: #adb5bd;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.osca-ads-grid.osca-view-list .osca-ad-date {
  margin-top: 4px;
}

.osca-ad-date svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ========================================
   My Ads Dashboard Styles - Matching SBL Design
   ======================================== */

.osca-my-ads-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 48px;
}

.osca-my-ads-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.osca-my-ad-item {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  align-items: stretch;
}

.osca-my-ad-item:last-child {
  border-bottom: none;
}

.osca-my-ad-image {
  flex-shrink: 0;
  width: 140px;
  min-height: 120px;
  border-right: 1px solid #f0f0f0;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.osca-my-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.osca-no-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  margin: 0 auto;
}

.osca-no-image svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

.osca-my-ad-details {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.osca-my-ad-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.3;
}

.osca-my-ad-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  align-items: center;
}

.osca-my-ad-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e0e0e0;
}

.osca-my-ad-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
}

.osca-my-ad-status[style*="color: #f0ad4e"],
.osca-my-ad-status[style*="pending"] {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.osca-my-ad-status[style*="color: #46b450"],
.osca-my-ad-status[style*="approved"] {
  background: #d1f2eb;
  color: #0d7377;
  border-color: #85e0d4;
}

.osca-my-ad-status[style*="color: #dc3232"],
.osca-my-ad-status[style*="rejected"] {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.osca-my-ad-date {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 500;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}

.osca-my-ad-excerpt {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
  flex: 1;
}

.osca-my-ad-info {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #777;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.osca-my-ad-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.osca-my-ad-info strong {
  color: #333;
  font-weight: 600;
  font-size: 12px;
}

.osca-my-ad-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 16px 20px;
  border-left: 1px solid #f0f0f0;
  justify-content: center;
  min-width: 120px;
  align-self: stretch;
}

.osca-my-ad-actions button,
.osca-my-ad-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  height: auto;
  min-height: 38px;
  line-height: 1.2;
}

.osca-my-ad-actions button svg,
.osca-my-ad-actions a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.osca-edit-ad-btn {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea),
    var(--sbl-secondary-color, #764ba2)
  );
  color: #fff;
  border: 2px solid transparent;
}

.osca-edit-ad-btn:hover {
  color: #fff;
}

.osca-edit-ad-btn:hover svg {
  stroke: #fff;
  color: #fff;
}

.osca-delete-ad-btn {
  background: #dc3232;
  color: #fff;
  border: 2px solid transparent;
}

.osca-delete-ad-btn:hover {
  color: #fff;
}

.osca-delete-ad-btn:hover svg {
  stroke: #fff;
  color: #fff;
}

.osca-view-ad-btn {
  background: #46b450;
  color: #fff;
  border: 2px solid transparent;
}

.osca-view-ad-btn:hover {
  color: #fff;
}

.osca-view-ad-btn:hover svg {
  stroke: #fff;
  color: #fff;
}

.osca-no-ads {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.osca-no-ads svg {
  margin-bottom: 20px;
  color: #ddd;
}

.osca-no-ads h3 {
  font-size: 20px;
  color: #666;
  margin-bottom: 10px;
}

.osca-no-ads p {
  font-size: 14px;
  color: #999;
}

/* ========================================
   Modal Styles (Reusing SBL patterns)
   ======================================== */

.osca-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.osca-modal.osca-modal-active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.osca-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.osca-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.osca-modal-content.osca-edit-modal-content {
  max-width: 800px;
  width: 95%;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.osca-modal.osca-modal-active .osca-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.osca-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.osca-modal-header .osca-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff !important;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.osca-modal-header .osca-modal-title svg {
  color: #fff !important;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.osca-modal-header .osca-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}

.osca-modal-header .osca-modal-close svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: #fff;
  fill: none;
  display: block;
  margin: 0;
}

.osca-modal-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

/* Edit Modal Button Styles */
.osca-edit-modal-content .osca-submit-row {
  padding: 16px 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.osca-edit-modal-content .osca-submit-button {
  padding: 10px 24px !important;
  font-size: 13px !important;
  min-width: auto !important;
  height: auto !important;
}

.osca-edit-modal-content .osca-submit-button .osca-button-text {
  gap: 6px !important;
}

.osca-edit-modal-content .osca-submit-button svg {
  width: 16px !important;
  height: 16px !important;
}

.osca-edit-modal-content .osca-cancel-button {
  padding: 10px 20px !important;
  font-size: 13px !important;
  margin-left: 0 !important;
  height: auto !important;
  margin-top: 15px!important;
}

.osca-modal-large {
  max-width: 600px;
}

.osca-cancel-button {
  background: #6c757d;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  min-width: auto;
}

body.osca-modal-open {
  overflow: hidden;
}

/* Success Modal Specific Styles */
.osca-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.osca-success-icon {
  background: #d4edda;
  color: #28a745;
}

.osca-modal-icon svg {
  width: 100%;
  height: 100%;
}

.osca-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
}

.osca-modal-message {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.osca-modal-button {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.osca-modal-button:active {
  transform: translateY(0);
}

/* Form Error Styles */
.osca-field-error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
  align-items: center;
  gap: 6px;
}

.osca-field-error:not(:empty) {
  display: flex;
}

.osca-field-error:before {
  content: "⚠";
  font-size: 14px;
}

.osca-input-wrapper input.error,
.osca-input-wrapper textarea.error,
.osca-input-wrapper select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.osca-input-wrapper input.error:focus,
.osca-input-wrapper textarea.error:focus,
.osca-input-wrapper select.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Loading Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
  .osca-modal-content {
    padding: 0;
    max-width: 95%;
  }

  .osca-modal-content.osca-edit-modal-content {
    width: 95%;
  }

  .osca-modal-header {
    padding: 20px;
  }

  .osca-modal-header .osca-modal-title {
    font-size: 18px;
  }

  .osca-modal-body {
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  .osca-modal-header {
    padding: 16px;
  }

  .osca-modal-header .osca-modal-title {
    font-size: 16px;
  }

  .osca-modal-body {
    padding: 16px;
  }
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
  .osca-my-ad-item {
    flex-direction: column;
  }

  .osca-my-ad-image {
    width: 100%;
    min-height: 160px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px;
  }

  .osca-my-ad-details {
    padding: 16px;
  }

  .osca-my-ad-actions {
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 16px;
    border-left: none;
    border-top: 1px solid #f0f0f0;
    min-width: auto;
    gap: 8px;
  }

  .osca-my-ad-actions button,
  .osca-my-ad-actions a {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    font-size: 11px;
    height: auto;
    min-height: 38px;
    line-height: 1.2;
    box-sizing: border-box;
    width: auto;
  }

  .osca-my-ad-actions button.osca-view-ad-btn,
  .osca-my-ad-actions a.osca-view-ad-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 8px 12px;
    font-size: 11px;
    height: auto;
    min-height: 38px;
    line-height: 1.2;
    box-sizing: border-box;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .osca-ad-meta {
    font-size: 12px;
  }
}

/* ========================================
   Loading States
   ======================================== */

.osca-button-spinner svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Form Error States
   ======================================== */

.osca-field-error {
  display: none;
  color: #dc3232;
  font-size: 13px;
  margin-top: 5px;
}

.osca-input-wrapper input.error,
.osca-input-wrapper textarea.error,
.osca-input-wrapper select.error {
  border-color: #dc3232;
}

.osca-form-messages {
  margin-bottom: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  display: none;
  animation: slideDown 0.3s ease-out;
}

.osca-form-messages.success {
  background: #d4edda;
  border: 2px solid #c3e6cb;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 12px;
}

.osca-form-messages.error {
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
  display: flex;
  align-items: center;
  gap: 12px;
}

.osca-error-message {
  padding: 15px;
  background: #fef2f2;
  border-left: 4px solid #dc3232;
  color: #dc3232;
  border-radius: 4px;
  margin-bottom: 20px;
  flex: 1;
  font-weight: 500;
}

.osca-success-message {
  padding: 15px;
  background: #f0fdf4;
  border-left: 4px solid #46b450;
  color: #46b450;
  border-radius: 4px;
  margin-bottom: 20px;
  flex: 1;
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Ultimate Member Integration
   ======================================== */

.osca-um-ads-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.osca-um-ad-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.osca-um-ad-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.osca-um-ad-details {
  padding: 15px;
}

.osca-um-ad-details h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

.osca-um-ad-details p {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
}

.osca-um-ad-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.osca-status-pending {
  background: #fff3cd;
  color: #856404;
}

.osca-status-approved {
  background: #d4edda;
  color: #155724;
}

.osca-status-rejected {
  background: #f8d7da;
  color: #721c24;
}

/* ========================================
   Single Ad Page Styles - Matching SBL Design
   ======================================== */

.osca-single-ad-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  padding-bottom: 60px;
  background: #fff;
}

/* .osca-back-link {
  margin-bottom: 20px;
} */

.osca-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 30px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.osca-back-button:hover {
  background: #e9ecef;
  color: #212529;
}

.osca-back-button svg {
  flex-shrink: 0;
}

/* Single Ad Header */
.osca-single-ad-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  margin-bottom: 24px;
  /* padding: 20px; */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.osca-single-ad-image-section {
  position: relative;
}

.osca-single-ad-image {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.osca-single-ad-image {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.osca-single-ad-image[data-image-src] {
  cursor: pointer;
}

.osca-single-ad-image[data-image-src] img {
  cursor: pointer;
}

.osca-single-ad-image:hover {
  transform: scale(1.02);
}

.osca-single-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.osca-image-zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.osca-single-ad-image:hover .osca-image-zoom-hint {
  opacity: 1;
}

.osca-image-zoom-hint svg {
  flex-shrink: 0;
}

.osca-no-image-placeholder {
  background: rgba(102, 126, 234, 0.05);
  color: #ccc;
}

.osca-no-image-placeholder svg {
  opacity: 0.3;
}

.osca-single-ad-info-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.osca-single-ad-meta-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.osca-single-ad-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea),
    var(--sbl-secondary-color, #764ba2)
  );
  color: #fff;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.osca-single-ad-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f5f5f5;
  color: #666;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
}

.osca-single-ad-date svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
}

.osca-single-ad-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

.osca-single-ad-price {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-radius: 10px;
  border: 2px solid var(--sbl-primary-color, #667eea);
}

/* Removed SVG icon - now using text "€" */

.osca-price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--sbl-primary-color, #667eea);
}

.osca-single-ad-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 10px;
}

.osca-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.osca-contact-item svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
}

.osca-phone-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.osca-single-ad-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.osca-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 44px;
  box-sizing: border-box;
  line-height: 1;
}

.osca-action-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.osca-call-btn {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea),
    var(--sbl-secondary-color, #764ba2)
  );
  color: #fff;
  flex: 1;
  min-width: 140px;
  border: 2px solid transparent;
}

.osca-call-btn:hover {
  color: #fff;
}

.osca-share-btn {
  background: #fff;
  color: var(--sbl-primary-color, #667eea);
  border: 2px solid var(--sbl-primary-color, #667eea);
  flex: 1;
  min-width: 140px;
}

.osca-share-btn:hover {
  background: #fff !important;
  color: var(--sbl-primary-color, #667eea) !important;
  border: 2px solid var(--sbl-primary-color, #667eea) !important;
}

.osca-share-btn:hover svg {
  stroke: var(--sbl-primary-color, #667eea) !important;
  color: var(--sbl-primary-color, #667eea) !important;
}

/* Single Ad Content */
.osca-single-ad-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 24px;
}

.osca-single-ad-main {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.osca-single-ad-description h2 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.osca-description-text {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.osca-description-text p {
  margin-bottom: 14px;
}

.osca-single-ad-social {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.osca-single-ad-social h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 14px 0;
}

.osca-social-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.osca-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 40px;
  box-sizing: border-box;
  line-height: 1;
  cursor: pointer;
}

.osca-social-btn:hover {
  color: #fff;
}
.osca-social-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.osca-facebook {
  background: #1877f2;
  color: #fff;
  border: 2px solid transparent;
}

.osca-twitter {
  background: #1da1f2;
  color: #fff;
  border: 2px solid transparent;
}

.osca-email {
  background: #34c759;
  color: #fff;
  border: 2px solid transparent;
}

.osca-copy-link {
  background: #fff;
  color: #666;
  border: 2px solid #e0e0e0;
  cursor: pointer;
}

.osca-copy-link:hover {
  color: #666;
  border: 2px solid #e0e0e0;
}

/* Sidebar */
.osca-single-ad-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.osca-sidebar-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.osca-sidebar-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.osca-sidebar-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.osca-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.osca-sidebar-item svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
  margin-top: 2px;
}

.osca-sidebar-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.osca-sidebar-item p {
  margin: 0;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.osca-sidebar-price .osca-price-large {
  font-size: 18px;
  font-weight: 700;
  color: var(--sbl-primary-color, #667eea);
}

.osca-contact-card {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  border: 2px solid var(--sbl-primary-color, #667eea);
}

.osca-sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.osca-contact-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.osca-contact-sidebar-item svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color, #667eea);
}

.osca-contact-sidebar-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.osca-contact-sidebar-item span {
  font-size: 12px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 968px) {
  .osca-single-ad-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .osca-single-ad-image {
    height: 300px;
  }

  .osca-single-ad-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .osca-single-ad-actions {
    flex-direction: column;
  }

  .osca-action-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .osca-single-ad-wrapper {
    padding: 20px 15px;
  }

  /* .osca-single-ad-header {
    padding: 20px;
  } */

  .osca-single-ad-title {
    font-size: 24px;
  }

  .osca-single-ad-main {
    padding: 25px;
  }

  .osca-sidebar-card {
    padding: 25px;
  }
}

/* ========================================
   Submission Form Styles - Matching SBL Design
   ======================================== */

/* Submission Form Wrapper */
.osca-submission-form-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px;
  margin-bottom: 55px;
}

.osca-form {
  background: #fff;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Form Header */
.osca-form-header {
  background: #0052a1;
  padding: 10px 20px 10px;
  text-align: left;
  color: #fff;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

@keyframes osca-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.osca-form-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.osca-form-header-icon svg {
  color: #fff;
}

.osca-form-title {
  margin: 0 0 0px 0;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  position: relative;
  text-align: left;
  z-index: 1;
}

.osca-form-subtitle,
p.osca-form-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  text-align: left;
}

/* Form Sections */
.osca-form-section {
  padding: 20px 40px;
  border-bottom: 1px solid #f0f0f0;
}

.osca-form-section:last-of-type {
  border-bottom: none;
}

.osca-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.osca-section-title svg {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.osca-form-row {
  margin-bottom: 8px;
}

.osca-form-row:last-child {
  margin-bottom: 0;
}

.osca-label-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.osca-label-with-icon:not(:has(.osca-label-icon)) {
  gap: 0;
}

.osca-label-icon {
  color: var(--sbl-primary-color);
  flex-shrink: 0;
}

.osca-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Photo input wrapper - stack items vertically */
.osca-photo-input-wrapper {
  flex-direction: column;
  align-items: flex-start;
}

.osca-input-wrapper input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafafa;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  margin-bottom: 0;
}

.osca-input-wrapper input::placeholder {
  color: #999;
}

.osca-input-wrapper input:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.osca-input-wrapper input.osca-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.osca-input-wrapper input.osca-field-has-error:focus {
  background: none !important;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Textarea styling */
.osca-input-wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafafa;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  margin-bottom: 0;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.osca-input-wrapper textarea::placeholder {
  color: #999;
}

.osca-input-wrapper textarea:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.osca-input-wrapper textarea.osca-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.osca-input-wrapper textarea.osca-field-has-error:focus {
  background: none !important;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Select styling */
.osca-input-wrapper select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: #fafafa;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  font-weight: 500;
  margin-bottom: 0;
  height: auto;
  line-height: 1.5;
}

.osca-input-wrapper select:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.osca-input-wrapper select.osca-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.osca-input-wrapper select.osca-field-has-error:focus {
  background-color: #fff !important;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.osca-input-wrapper select option {
  padding: 10px 15px;
  color: #333;
  background: #fff;
}

/* File input styling */
/* Price input field - add Euro symbol */
/* Removed Euro symbol from input field - now shown in label text */

.osca-input-wrapper input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fafafa;
  color: #333;
  font-family: inherit;
  margin-bottom: 0;
  cursor: pointer;
}

.osca-input-wrapper input[type="file"]:focus {
  outline: none;
  border-color: var(--sbl-primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.osca-input-wrapper input[type="file"].osca-field-has-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.osca-input-wrapper input[type="file"].osca-field-has-error:focus {
  background: #fff !important;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* File input custom styling */
.osca-input-wrapper input[type="file"]::-webkit-file-upload-button {
  padding: 8px 20px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color),
    var(--sbl-secondary-color)
  );
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.osca-input-wrapper input[type="file"]::file-selector-button {
  padding: 8px 20px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color),
    var(--sbl-secondary-color)
  );
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.osca-field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.osca-field-hint svg {
  flex-shrink: 0;
  color: var(--sbl-primary-color);
}

.osca-field-error {
  display: block;
  color: #dc3232;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.osca-field-error.osca-error-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Submit row styling */
.osca-submit-row {
  margin-top: 0;
  padding: 35px 40px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.osca-submit-button {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  padding: 9px 22px;
  margin-bottom: -3px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.osca-submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.osca-submit-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.osca-submit-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

.osca-submit-button .osca-button-text {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  text-transform: capitalize;
}

.osca-submit-button .osca-button-text svg {
  flex-shrink: 0;
}

.osca-button-text {
  display: inline-block;
}

.osca-button-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.osca-button-spinner svg {
  animation: osca-spin 1s linear infinite;
}

@keyframes osca-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.osca-label-with-icon .required {
  color: #dc3232;
  font-weight: 700;
  margin-left: 2px;
}

/* Responsive styles for submission form */
@media screen and (max-width: 768px) {
  .osca-submission-form-wrapper {
    padding: 0;
  }

  .osca-form-header {
    padding: 13px 20px;
  }

  .osca-form-title {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 0px 0;
  }

  .osca-form-subtitle,
  p.osca-form-subtitle {
    font-size: 16px;
  }

  .osca-form-section {
    padding: 25px 20px;
  }

  .osca-section-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .osca-submit-row {
    padding: 25px 20px;
  }

  .osca-submit-button {
    width: 100%;
    min-width: auto;
    padding: 14px 30px;
  }
}

@media screen and (max-width: 480px) {
  .osca-form-header {
    padding: 13px 15px;
  }

  .osca-form-title {
    font-size: 20px;
    font-weight: 300;
    margin: 0 0 0px 0;
  }

  .osca-form-subtitle,
  p.osca-form-subtitle {
    font-size: 14px;
  }
}

/* ========================================
   Related Ads Section Styles
   ======================================== */

.osca-related-ads-section {
  margin-top: 60px;
  margin-bottom: 40px;
  padding-top: 50px;
  padding-bottom: 0;
  border-top: 2px solid #f0f0f0;
}

.osca-related-ads-header {
  text-align: center;
  margin-bottom: 40px;
}

.osca-related-ads-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
}

.osca-related-ads-title svg {
  color: var(--sbl-primary-color, #667eea);
  flex-shrink: 0;
}

.osca-related-ads-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.osca-related-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.osca-related-ad-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.osca-related-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.osca-related-ad-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.osca-related-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.osca-related-ad-content {
  padding: 20px;
}

.osca-related-ad-category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea),
    var(--sbl-secondary-color, #764ba2)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.osca-related-ad-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.osca-related-ad-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.osca-related-ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.osca-related-ad-price {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--sbl-primary-color, #667eea);
}

/* Removed SVG icon - now using text "€" */

.osca-related-ad-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #999;
}

.osca-related-ad-date svg {
  flex-shrink: 0;
}

/* Responsive Design for Related Ads */
@media (max-width: 968px) {
  .osca-related-ads-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .osca-related-ads-section {
    margin-top: 40px;
    padding-top: 30px;
  }

  .osca-related-ads-title {
    font-size: 22px;
  }

  .osca-related-ads-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .osca-related-ad-image {
    height: 180px;
  }
}

/* ========================================
   Archive Page - Shortcode Info Section
   ======================================== */

.osca-archive-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.osca-shortcode-info {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  border: 2px solid var(--sbl-primary-color, #667eea);
  border-radius: 12px;
  padding: 20px 25px;
  margin-top: 10px;
}

.osca-shortcode-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.osca-shortcode-info-header svg {
  color: var(--sbl-primary-color, #667eea);
  flex-shrink: 0;
}

.osca-shortcode-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.osca-shortcode-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.osca-shortcode-code {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--sbl-primary-color, #667eea);
  background: rgba(102, 126, 234, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.osca-shortcode-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-left: 2px;
}

/* Responsive Design for Shortcode Info */
@media (max-width: 768px) {
  .osca-shortcode-info {
    padding: 15px 20px;
  }

  .osca-shortcode-item {
    padding: 10px 12px;
  }

  .osca-shortcode-code {
    font-size: 12px;
    padding: 5px 8px;
  }

  .osca-shortcode-desc {
    font-size: 12px;
  }
}

/* Category Searchable Dropdown */
.osca-category-search-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.osca-category-trigger {
  width: 100%;
  padding: 12px 40px 12px 18px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

.osca-category-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 10px;
}

.osca-category-trigger-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  color: #999;
  transition: transform 0.3s ease;
}

.osca-category-search-wrapper:focus-within .osca-category-trigger,
.osca-category-search-wrapper:has(.osca-category-search-dropdown.active)
  .osca-category-trigger {
  border-color: var(--sbl-primary-color, #667eea);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.osca-category-search-wrapper:has(.osca-category-search-dropdown.active)
  .osca-category-trigger-icon {
  transform: translateY(-50%) rotate(180deg);
}

.osca-category-search {
  position: relative;
  z-index: 1;
}

.osca-category-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.osca-category-search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.osca-category-search-input-wrapper {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.osca-category-search-input-wrapper .osca-category-search-icon {
  display: none;
}

.osca-category-search-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
  height: 48px;
  box-sizing: border-box;
  line-height: 24px;
  margin: 0;
}

.osca-category-search-input:focus {
  outline: none;
  border-color: var(--sbl-primary-color, #667eea);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.osca-category-search-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.osca-category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.osca-category-option.selected {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color, #667eea) 0%,
    var(--sbl-secondary-color, #764ba2) 100%
  );
  color: #fff;
}

.osca-category-option.selected .osca-category-name {
  color: #fff;
  font-weight: 600;
}

.osca-category-option.selected .osca-category-count {
  color: rgba(255, 255, 255, 0.9);
}

.osca-category-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.osca-category-count {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

.osca-category-no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Scrollbar styling for results */
.osca-category-search-results::-webkit-scrollbar {
  width: 6px;
}

.osca-category-search-results::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.osca-category-search-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Hide original select when dropdown is active */
.osca-category-search-wrapper:focus-within .osca-category-search {
  border-color: var(--sbl-primary-color, #667eea);
}

@media (max-width: 768px) {
  .osca-category-search-dropdown {
    left: 0;
    right: 0;
  }

  .osca-category-search-results {
    max-height: 250px;
  }

  /* List View Mobile Styles */
  .osca-ads-grid.osca-view-list .osca-ad-card {
    min-height: auto;
  }

  .osca-ads-grid.osca-view-list .osca-ad-card-inner {
    flex-direction: column;
  }

  .osca-ads-grid.osca-view-list .osca-ad-image {
    width: 100%;
    min-width: 100%;
    height: 200px;
    min-height: 200px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .osca-ads-grid.osca-view-list .osca-ad-content {
    padding: 20px;
  }

  .osca-ads-grid.osca-view-list .osca-ad-title {
    font-size: 17px;
  }

  .osca-ads-grid.osca-view-list .osca-ad-meta {
    flex-direction: column;
    gap: 10px;
  }

  .osca-ads-grid.osca-view-list .osca-ad-price {
    font-size: 20px;
  }
}

/* ========================================
   Pagination
   ======================================== */

.osca-pagination {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #f0f0f0;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.osca-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
}

.osca-pagination .page-numbers.current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  cursor: default;
}

.osca-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.osca-pagination .osca-page-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 4px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.osca-pagination .osca-page-link.osca-page-current {
  background: linear-gradient(
    135deg,
    var(--sbl-primary-color) 0%,
    var(--sbl-secondary-color) 100%
  );
  color: #fff;
  border-color: var(--sbl-primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  cursor: default;
}

.osca-pagination .osca-page-dots {
  display: inline-block;
  padding: 10px 8px;
  margin: 0 4px;
  color: #666;
  font-weight: 600;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .osca-pagination {
    margin-top: 30px;
    margin-bottom: 40px;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 3px;
  }

  .osca-pagination .page-numbers,
  .osca-pagination .osca-page-link {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    line-height: 1;
  }

  .osca-pagination .page-numbers.dots {
    padding: 8px 6px;
    min-width: auto;
  }
}

/* ========================================
   Image Zoom Modal Styles
   ======================================== */

.osca-image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.osca-image-zoom-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.osca-image-zoom-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  box-sizing: border-box;
}

.osca-image-zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000001;
  color: #fff;
  backdrop-filter: blur(10px);
}

.osca-image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.osca-image-zoom-close svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}

.osca-image-zoom-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000001;
}

.osca-zoom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.osca-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.osca-zoom-btn:active {
  transform: scale(0.95);
}

.osca-zoom-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

.osca-image-zoom-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.osca-image-zoom-content img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.2s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive Design for Zoom Modal */
@media (max-width: 768px) {
  .osca-image-zoom-container {
    padding: 50px 15px 15px;
  }

  .osca-image-zoom-close {
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }

  .osca-image-zoom-close svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
  }

  .osca-image-zoom-controls {
    bottom: 20px;
    padding: 10px 12px;
    gap: 8px;
  }

  .osca-zoom-btn {
    width: 50px;
    height: 50px;
  }

  .osca-zoom-btn svg {
    width: 24px;
    height: 24px;
  }

  .osca-image-zoom-content img {
    max-width: 95%;
    max-height: 85%;
  }
}

@media (max-width: 480px) {
  .osca-image-zoom-close {
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
  }

  .osca-image-zoom-close svg {
    width: 28px;
    height: 28px;
  }

  .osca-image-zoom-controls {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 12px;
    gap: 10px;
    width: auto;
    min-width: auto;
    max-width: calc(100% - 30px);
  }

  .osca-zoom-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0;
  }

  .osca-zoom-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Extra small screens - ensure buttons stay horizontal and centered */
@media (max-width: 360px) {
  .osca-image-zoom-controls {
    gap: 8px;
    padding: 8px 10px;
  }

  .osca-zoom-btn {
    width: 44px;
    height: 44px;
  }

  .osca-zoom-btn svg {
    width: 20px;
    height: 20px;
  }
}
