/* Enhanced My Listings Professional UI/UX Styles */

:root {
  /* Colors - HSL Format */
  --primary: hsl(217, 91%, 60%);
  --primary-light: hsl(213, 94%, 68%);
  --primary-dark: hsl(221, 83%, 53%);
  --primary-foreground: hsl(0, 0%, 100%);

  --secondary: hsl(187, 85%, 43%);
  --secondary-foreground: hsl(0, 0%, 100%);

  --success: hsl(160, 84%, 39%);
  --success-light: hsl(158, 64%, 52%);
  --success-foreground: hsl(0, 0%, 100%);

  --warning: hsl(38, 92%, 50%);
  --warning-light: hsl(43, 96%, 56%);
  --warning-foreground: hsl(0, 0%, 100%);

  --danger: hsl(0, 84%, 60%);
  --danger-light: hsl(0, 93%, 94%);
  --danger-foreground: hsl(0, 0%, 100%);

  --background: hsl(220, 25%, 97%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --muted: hsl(220, 13%, 95%);
  --muted-foreground: hsl(215, 16%, 47%);
  --border: hsl(220, 13%, 91%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(187, 85%, 43%) 100%);
  --gradient-success: linear-gradient(135deg, hsl(160, 84%, 39%) 0%, hsl(158, 64%, 52%) 100%);
  --gradient-warning: linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(43, 96%, 56%) 100%);
  --gradient-danger: linear-gradient(135deg, hsl(0, 84%, 60%) 0%, hsl(0, 72%, 51%) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, hsl(220, 25%, 97%) 0%, hsl(220, 13%, 91%) 100%);
  min-height: 100vh;
  color: var(--foreground);
  line-height: 1.6;
}

/* Container */
.listings-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  animation: slideUp 0.6s ease-out;
}
/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.header-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: 50%;
  transform: translate(50%, -50%);
  filter: blur(48px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 24px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 300px;
}

.page-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  flex-shrink: 0;
}

.page-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.header-info {
  flex: 1;
}

.page-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 8px 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  color: var(--muted-foreground);
  margin: 0 0 16px 0;
  font-size: 16px;
}

.quick-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--muted);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: var(--transition);
}

.stat-badge:hover {
  background: var(--border);
}

.stat-badge i {
  color: var(--primary);
}

.header-divider {
  flex-basis: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(217, 91%, 60%, 0.35), transparent);
  margin: 12px 0;
  border-radius: 999px;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex-basis: 100%;
}

.actions-panel {
  width: 100%;
}

.search-card,
.filter-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.search-title,
.filter-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.search-hint,
.filter-description {
  margin: 4px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.search-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0 8px 0 0;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  padding-right: 8px;
}

.search-input-row .search-icon {
  position: static;
  transform: none;
  font-size: 18px;
}

.search-input-row .search-input {
  border: none;
  padding: 12px 0;
  height: auto;
  flex: 1;
}

.search-input-row .search-input:focus {
  border: none;
  box-shadow: none;
}

.search-clear {
  left: auto;
  right: auto;
  position: relative;
}

.search-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.search-submit {
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  opacity: 0.9;
}


.search-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.search-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.search-tip i {
  color: var(--primary);
}

.filter-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.filter-badge i {
  color: var(--primary);
}

.filter-trigger {
  align-self: center;
  min-width: 150px;
}

.search-wrapper {
  position: relative;
  min-width: 300px;
  flex: 1;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.1);
}

.search-clear {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-clear:hover {
  background: var(--muted);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
      border: 2px solid rgba(37, 99, 235, 0.6) !important;
}
.btn-reset-filters{
    background: transparent;
    color: #2563eb !important;
    border: 2px solid rgba(37, 99, 235, 0.6) !important;
    min-width: 140px;
    max-width: 180px;
    height: 44px;
    padding: 0.35rem 1rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-icon:hover {
  background: var(--muted);
}

.floating-cta .btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: iconPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
  border: none;
}
.floating-cta .btn-icon i {
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  height: 32px;
}

.btn-text {
  display: none;
}

@media (min-width: 640px) {
  .btn-text {
    display: inline;
  }
}

/* ============================================
   STATS OVERVIEW
   ============================================ */

.stats-section {
  margin-bottom: 24px;
  animation: fadeIn 0.5s ease-out 0.1s both;
}

.stats-header {
    margin: 0 auto;
    margin-bottom: 20px;
}

.stats-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.stats-description {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  animation: scaleIn 0.4s ease-out;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.05;
  transition: var(--transition);
}

.stat-card:hover .stat-gradient {
  opacity: 0.1;
}

.stat-success .stat-gradient {
  background: var(--gradient-success);
}

.stat-warning .stat-gradient {
  background: var(--gradient-warning);
}

.stat-primary .stat-gradient {
  background: var(--gradient-primary);
}

.stat-danger .stat-gradient {
  background: var(--gradient-danger);
}

.stat-content-wrapper {
  position: relative;
  z-index: 1;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.1);
}

.stat-icon-success {
  background: hsla(160, 84%, 39%, 0.1);
  color: var(--success);
}

.stat-icon-warning {
  background: hsla(38, 92%, 50%, 0.1);
  color: var(--warning);
}

.stat-icon-primary {
  background: hsla(217, 91%, 60%, 0.1);
  color: var(--primary);
}

.stat-icon-danger {
  background: hsla(0, 84%, 60%, 0.1);
  color: var(--danger);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.filters-section {
  background: var(--card);
  padding: 40px;
  margin-bottom: 24px;
  margin-top: 24px;
  animation: scaleIn 0.4s ease-out;
}

.load-more-section {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.btn-load-more-mylistings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-load-more-mylistings::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-load-more-mylistings:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
}

.btn-load-more-mylistings:hover::before {
  left: 100%;
}

.btn-load-more-mylistings:active {
  transform: translateY(0);
}

.btn-load-more-mylistings:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-load-more-mylistings i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-load-more-mylistings:hover i {
  transform: translateY(3px);
}

.btn-load-more-mylistings .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.filters-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
}

.filters-section label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 6px;
}

.filters-section label i {
  color: var(--primary);
}

.filters-section .search-dropdown .searchable-display {
  padding: 12px 18px;
  min-height: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.filters-section .search-dropdown .searchable-display .selected-text {
  font-size: 0.95rem;
}

.filter-input-group {
  position: relative;
}

.filter-input-group .input-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  pointer-events: none;
}

.filter-input-group .form-control,
.filter-input-group .form-select {
  padding-inline-end: 38px;
}

.filter-input-group .dropdown-caret {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
  font-size: 0.85rem;
}

.filters-section .form-control,
.filters-section .form-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  height: 54px;
  padding: 0 40px 0 14px;
  transition: var(--transition);
}

.filters-section .form-control::placeholder {
  color: var(--muted-foreground);
}

.filters-section .form-control:focus,
.filters-section .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.15);
}

.filters-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.filters-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.1);
}

/* ============================================
   LISTINGS GRID
   ============================================ */

.listings-section {
  animation: fadeIn 0.5s ease-out 0.2s both;
}

.listings-header-info {
  margin-bottom: 16px;
}

.listings-count {
  font-size: 14px;
  color: var(--muted-foreground);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  animation: scaleIn 0.4s ease-out;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Listing Image */
.listing-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.listing-card:hover .listing-img {
  transform: scale(1.1);
}

.listing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: var(--transition);
}

.listing-card:hover .listing-overlay {
  opacity: 1;
}

.listing-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
}

.badge-success {
  background: hsla(160, 84%, 39%, 0.1);
  color: var(--success);
  border-color: hsla(160, 84%, 39%, 0.2);
}

.badge-warning {
  background: hsla(38, 92%, 50%, 0.1);
  color: var(--warning);
  border-color: hsla(38, 92%, 50%, 0.2);
}

.badge-primary {
  background: hsla(217, 91%, 60%, 0.1);
  color: var(--primary);
  border-color: hsla(217, 91%, 60%, 0.2);
}

.badge-danger {
  background: hsla(0, 84%, 60%, 0.1);
  color: var(--danger);
  border-color: hsla(0, 84%, 60%, 0.2);
}

.badge:hover {
  opacity: 0.8;
}

.listing-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0.8;
  transition: var(--transition);
}

.listing-actions .dropdown-toggle::after {
  display: none;
}

.listing-card:hover .listing-actions {
  opacity: 1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  display: none;
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--muted);
}

.dropdown-item.text-danger {
  color: var(--danger);
}

.listing-views {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

/* Listing Content */
.listing-content {
  padding: 20px;
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.listing-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: hsla(217, 91%, 60%, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-md);
}

.listing-date {
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
}

.listing-card:hover .listing-title {
  color: var(--primary);
}

.listing-description {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 12px 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-location {
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.listing-price-wrapper {
  flex: 1;
}

.price-label {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0 0 4px 0;
}

.listing-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.price-currency {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-right: 4px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 64px 24px;
  animation: fadeIn 0.5s ease-out;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--muted);
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 40px;
  color: var(--muted-foreground);
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.empty-description {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .listings-container {
    padding: 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .header-left {
    flex-direction: column;
    gap: 16px;
  }

  .page-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .search-wrapper {
    min-width: 100%;
  }

  .action-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .btn {
    flex: 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 28px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
  }

  .header-actions,
  .listing-actions,
  .filters-section {
    display: none !important;
  }

  .listing-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Bulk Actions Bar & Checkboxes */
.bulk-actions-bar {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  min-width: 400px;
  max-width: 90vw;
}

.bulk-actions-bar.active {
  bottom: 30px;
}

.bulk-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid #e2e8f0;
}

.selected-count {
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 16px;
}

.selected-label {
  font-weight: 700;
  color: #64748b;
  font-size: 14px;
}

.bulk-buttons {
  display: flex;
  gap: 10px;
}

.bulk-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-btn-sold {
  background: #f1f5f9;
  color: #1e293b;
}

.bulk-btn-sold:hover {
  background: #e2e8f0;
}

.bulk-btn-delete {
  background: #fef2f2;
  color: #ef4444;
}

.bulk-btn-delete:hover {
  background: #fee2e2;
}

.bulk-btn-restore {
  background: #ecfdf5;
  color: #10b981;
}

.bulk-btn-restore:hover {
  background: #d1fae5;
}

/* Custom Checkbox inside Card */
.listing-checkbox-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
}

.listing-card:hover .listing-checkbox-wrapper,
.listing-checkbox:checked ~ .listing-checkbox-label {
  opacity: 1;
}

.listing-checkbox-label {
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.8;
  margin: 0;
}

.listing-checkbox-label i {
  color: white;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.listing-checkbox:checked + .listing-checkbox-label {
  background: #2563eb;
  border-color: #2563eb;
  opacity: 1;
}

.listing-checkbox:checked + .listing-checkbox-label i {
  opacity: 1;
  transform: scale(1);
}

.listing-checkbox {
  display: none !important;
}

/* Header "Select All" */
.select-all-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  width: fit-content;
  cursor: pointer;
  transition: all 0.2s;
}

.select-all-wrapper:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.select-all-text {
  font-weight: 700;
  font-size: 14px;
  color: #475569;
}

@media (max-width: 640px) {
  .bulk-actions-bar {
    min-width: calc(100vw - 40px);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  
  .bulk-info {
    border: none;
    padding: 0;
    width: 100%;
    justify-content: center;
  }
  
  .bulk-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .bulk-btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
  }
}
