.listing-card-modern {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  position: relative;
}

.listing-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}

.listing-top {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.listing-photos-column {
  width: 420px;
  max-width: 100%;
}

.listing-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #f4f4f4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.listing-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-thumbs {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.listing-thumb {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.85;
  transition: 0.2s ease;
  border: 2px solid transparent;
  flex: 0 0 auto;
}

.listing-thumb:hover {
  opacity: 1;
}

.listing-thumb.active {
  border-color: #2563eb;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.listing-info-column {
  flex: 1;
  min-width: 280px;
}

.listing-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listing-price {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
}

.listing-price-type {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
}

.listing-title {
  font-size: 24px;
  font-weight: 600;
  margin: 18px 0;
}

.listing-params {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.listing-param {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f5;
}

.listing-param span {
  color: #6b7280;
}

.listing-location-line {
  font-size: 14px;
  color: #6b7280;
}

.listing-org-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f9fafb;
  flex-wrap: wrap;
}

.listing-org-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
  color: #6b7280;
}

.listing-org-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-org-card__info {
  flex: 1;
  min-width: 0;
}

.listing-org-card__title {
  font-weight: 700;
}

.listing-org-card__link {
  font-size: 14px;
  color: #2563eb;
}

.listing-org-card__phone {
  margin-top: 6px;
  font-size: 14px;
  color: #374151;
}

.listing-org-card__chat {
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-verified {
  background: #e7f7ff;
  color: #0077cc;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.badge-trusted {
  background: #fff0d4;
  color: #aa7a00;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.listing-org-card--panel {
  background: #fff;
  border-color: #e5e7eb;
  margin-bottom: 10px;
}

.org-all-listings {
  display: inline-block;
  margin-top: 4px;
  color: #374151;
  font-size: 14px;
}

.listing-seller-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}

.seller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

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

.seller-name {
  font-weight: 600;
}

.seller-phone-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-wrap: wrap;
}

.seller-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.seller-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid #3A57E8;
  border-radius: 12px;
  color: #3A57E8;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.seller-profile-btn:hover {
  background: #EFF3FF;
  color: #3A57E8;
}

.seller-profile-btn:active {
  background: #DDE5FF;
  color: #2D47C5;
}

.seller-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}

.seller-profile:hover {
  color: #1f2937;
}

.phone-reveal {
  margin-left: 8px;
  color: #3A76F0;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.phone-reveal:hover {
  text-decoration: underline;
}

.sold-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  color: #7c2d12;
  font-size: 14px;
  margin-bottom: 8px;
}

.sold-notice span {
  font-size: 13px;
  color: #92400e;
}

#masked-phone {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.seller-phone-note {
  font-size: 14px;
  color: #6b7280;
}

.honeypot-phone {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.listing-description-block {
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.listing-description-block h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.similar-listings-block,
.seller-other-block {
  margin-top: 40px;
}

.similar-grid,
.seller-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .listing-top {
    flex-direction: column;
  }
  .listing-photos-column {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .seller-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.photo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.photo-modal.hidden {
  display: none;
}

.photo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.photo-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.photo-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.photo-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
