/* Annonces Premium CSS */
.premium-annonces-page {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: .5rem 0 3rem;
}

.annonces-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  min-height: 330px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #164d3b 0%, #0d3428 100%);
  box-shadow: 0 12px 36px rgba(13, 52, 40, 0.12);
  margin-bottom: 2rem;
}

.annonces-hero-copy {
  padding: clamp(2rem, 5vw, 4rem);
}

.annonces-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--premium-lime, #dce8ad);
  margin-bottom: .8rem;
}

.annonces-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.annonces-hero p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.annonces-primary-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.3rem;
  border-radius: 12px;
  color: var(--premium-ink, #18221d);
  background: var(--premium-lime, #dce8ad);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
}

.annonces-primary-link:hover {
  background: #e8f3bc;
  color: var(--premium-ink, #18221d);
  transform: translateY(-2px);
}

.annonces-hero-art {
  min-height: 330px;
  overflow: hidden;
}

.annonces-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.annonces-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--premium-line, #d2d8cf);
}

.annonces-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--premium-ink, #18221d);
}

.annonces-heading p {
  margin: .25rem 0 0;
  color: var(--premium-muted, #5e6b63);
  font-size: .9rem;
  font-weight: 600;
}

.annonces-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 12px;
  color: var(--premium-ink, #18221d);
  background: var(--premium-surface, #ffffff);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

.annonces-filter-toggle:hover {
  border-color: var(--premium-green, #164d3b);
  color: var(--premium-green, #164d3b);
  background: #ffffff;
}

.annonces-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

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

.annonces-filters {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 20px;
  padding: 1.4rem;
  position: sticky;
  top: 110px;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.03);
}

.annonces-filters.is-collapsed {
  display: none;
}

.filter-title {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--premium-green, #164d3b);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--premium-line, #d2d8cf);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.annonces-filters label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--premium-muted, #5e6b63);
  margin: 1rem 0 .35rem;
}

.annonces-filters label:first-of-type {
  margin-top: 0;
}

.annonces-filters input,
.annonces-filters select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 10px;
  background: #f7f9f5;
  color: var(--premium-ink, #18221d);
  font-size: .9rem;
  outline: none;
  transition: all .2s ease;
}

.annonces-filters input:focus,
.annonces-filters select:focus {
  border-color: var(--premium-green, #164d3b);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 77, 59, 0.1);
}

.price-filter > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.annonces-reset {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--premium-muted, #5e6b63);
  text-decoration: none;
  transition: color .2s ease;
}

.annonces-reset:hover {
  color: var(--premium-green, #164d3b);
}

.annonces-results {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.user-annonce-card,
.annonce-card {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

.user-annonce-card:hover,
.annonce-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(24, 34, 29, 0.08);
}

.user-annonce-media,
.annonce-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e5ebe3;
}

.user-annonce-media .media-link,
.annonce-image {
  display: block;
  width: 100%;
  height: 100%;
}

.user-annonce-media img,
.annonce-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.user-annonce-card:hover .user-annonce-media img,
.annonce-card:hover .annonce-image img {
  transform: scale(1.05);
}

.media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  pointer-events: none;
  z-index: 2;
}

.badge-type,
.badge-price,
.annonce-price,
.annonce-promo {
  font-size: .72rem;
  font-weight: 800;
  padding: .28rem .6rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.badge-type,
.annonce-promo {
  background: rgba(24, 34, 29, 0.75);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.badge-price,
.annonce-price {
  background: rgba(22, 77, 59, 0.95);
  color: #ffffff;
}

.user-annonce-body,
.annonce-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.user-annonce-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .75rem;
  margin-bottom: .4rem;
}

.category-tag {
  color: var(--premium-green, #164d3b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.date-tag {
  color: var(--premium-muted, #5e6b63);
}

.annonce-title {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: "DM Sans", sans-serif !important;
  margin: 0 0 .4rem;
  line-height: 1.35;
}

.annonce-title a {
  color: var(--premium-ink, #18221d);
  text-decoration: none;
  transition: color .2s ease;
}

.annonce-title a:hover {
  color: var(--premium-green, #164d3b);
}

.annonce-excerpt {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: 1rem;
  flex: 1;
}

.user-annonce-footer,
.annonce-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--premium-line, #d2d8cf);
}

.location-tag {
  font-size: .8rem;
  font-weight: 600;
  color: var(--premium-ink, #18221d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-action.edit {
  background: rgba(22, 77, 59, 0.08);
  color: var(--premium-green, #164d3b);
}

.btn-action.edit:hover {
  background: var(--premium-green, #164d3b);
  color: #ffffff;
}

.btn-action.delete {
  background: #fde8e6;
  color: #dc3545;
}

.btn-action.delete:hover {
  background: #dc3545;
  color: #ffffff;
}

.btn-action.view {
  background: #f7f9f5;
  color: var(--premium-ink, #18221d);
  border: 1px solid var(--premium-line, #d2d8cf);
}

.btn-action.view:hover {
  background: var(--premium-ink, #18221d);
  color: #ffffff;
}

.user-annonce-empty,
.annonce-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--premium-surface, #ffffff);
  border: 1px dashed var(--premium-line, #d2d8cf);
  border-radius: 20px;
}

.user-annonce-empty .empty-icon,
.annonce-empty i {
  font-size: 2.8rem;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: .8rem;
}
/* Annonce Info Modal (details + viewers tabs) */
.annonce-info-modal .modal-content {
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 18px;
  background: var(--premium-surface, #ffffff);
  color: var(--premium-ink, #18221d);
}

.annonce-info-modal .modal-header {
  border-bottom: 1px solid var(--premium-line, #c8d0c4);
}

.annonce-info-modal .modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--premium-ink, #18221d);
}

.annonce-info-tabs {
  border-bottom: 1px solid var(--premium-line, #c8d0c4);
}

.annonce-info-tabs .nav-link {
  color: var(--premium-muted, #5e6b63);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.6rem 1rem;
}

.annonce-info-tabs .nav-link:hover {
  color: var(--premium-green, #234e32);
  border-bottom-color: rgba(35, 78, 50, 0.3);
}

.annonce-info-tabs .nav-link.active {
  color: var(--premium-green, #234e32);
  background: transparent;
  border-bottom-color: var(--premium-green, #234e32);
}

.annonce-modal-cover {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--premium-line, #c8d0c4);
  margin-bottom: 1rem;
  background: #f4f6f4;
}

.annonce-modal-cover img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.annonce-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.annonce-detail-grid .detail-item {
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--premium-muted, #5e6b63);
}

.detail-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--premium-ink, #18221d);
  word-break: break-word;
}

.annonce-modal-description {
  margin-top: 1rem;
}

.annonce-modal-description .description-box {
  margin-top: 0.4rem;
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--premium-ink, #18221d);
  max-height: 260px;
  overflow-y: auto;
}

.viewer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.viewer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
}

.viewer-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.viewer-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 78, 50, 0.1);
  color: var(--premium-green, #234e32);
  font-size: 1rem;
}

.viewer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--premium-ink, #18221d);
}

.viewer-meta {
  font-size: 0.74rem;
  color: var(--premium-muted, #5e6b63);
}

.viewer-date {
  font-size: 0.76rem;
  color: var(--premium-muted, #5e6b63);
  white-space: nowrap;
}

.viewer-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--premium-muted, #5e6b63);
}

.viewer-empty i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}


@media (max-width: 991px) {
  .annonces-hero {
    grid-template-columns: 1fr;
  }
  .annonces-hero-art {
    display: none;
  }
  .annonces-layout {
    grid-template-columns: 1fr;
  }
}
