/* Catalog detail tweaks on top of property_detail.css */

.catalog-unit {
  font-size: 0.72em;
  font-weight: 600;
  color: #57534e;
}

.loyer--on-request {
  color: #78716c;
  font-size: 1.05rem;
}

.catalog-info-details {
  margin-top: 0.5rem;
}

.contact-form-container.catalog-seller-card {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  max-width: 380px;
  padding: 1.5rem 1.25rem 1.35rem;
  overflow: visible;
}

.catalog-seller-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  order: 1;
}

.catalog-seller-card__info .agence-contact-name {
  margin-top: 0;
  font-size: 1.15rem;
  color: #1c1917;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.catalog-seller-verified {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #e85d04;
}

.catalog-seller-verified svg {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-seller-card__info .agence-contact-links {
  margin-top: 0.35rem;
}

.catalog-seller-card__info .agence-contact-links a {
  color: orange;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.catalog-seller-card__info .agence-contact-links a:hover {
  color: #ff9800;
  text-decoration: underline;
}

.catalog-seller-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.catalog-seller-card__avatar-link {
  display: block;
  border-radius: 50%;
  line-height: 0;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.catalog-seller-card__avatar-link:hover,
.catalog-seller-card__avatar-link:focus-visible {
  opacity: 0.92;
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.25);
}

.catalog-seller-card__avatar img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: none;
  border: 1px solid #e7e5e4;
}

.catalog-contact {
  order: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.catalog-contact-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
}

.catalog-contact-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem 1rem;
  min-height: 38px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
  color: #292524;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.catalog-contact-btn:hover,
.catalog-contact-btn:focus-visible {
  border-color: #a8a29e;
  color: #1c1917;
  background: #fafaf9;
  outline: none;
}

.catalog-contact-btn--wa {
  border-color: #d6d3d1;
  color: #292524;
}

.catalog-contact-phone {
  display: none;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #44403c;
  letter-spacing: 0.02em;
  text-align: center;
}

.catalog-seller-card .contact-form-preview-hint {
  margin-top: 0.75rem;
}

.catalog-associated {
  margin: 1.25rem 0 0.5rem;
}

.catalog-associated__intro {
  margin: -0.35rem 0 0.85rem;
  color: #57534e;
  font-size: 0.9rem;
}

.catalog-associated__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.catalog-associated__card {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 0.7rem;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.catalog-associated__card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-associated__card--clickable:hover,
.catalog-associated__card--clickable:focus-visible {
  border-color: #d6d3d1;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
  outline: none;
}

.catalog-associated__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f0ea;
}

.catalog-associated__img--empty {
  background: #f5f0ea;
}

.catalog-associated__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.catalog-associated__price {
  margin: 0 0 0.25rem;
  color: #e85d04;
  font-weight: 700;
  font-size: 0.9rem;
}

.catalog-associated__desc {
  margin: 0;
  color: #57534e;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Associated product image lightbox */
.catalog-assoc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 10, 9, 0.88);
}

.catalog-assoc-lightbox[hidden] {
  display: none !important;
}

.catalog-assoc-lightbox__figure {
  margin: 0;
  max-width: min(920px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.catalog-assoc-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #1c1917;
}

.catalog-assoc-lightbox__caption {
  margin: 0;
  color: #f5f5f4;
  font-size: 0.95rem;
  text-align: center;
  max-width: 36rem;
}

.catalog-assoc-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}

.catalog-assoc-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.catalog-assoc-lightbox__arrow--prev {
  left: 0.75rem;
}

.catalog-assoc-lightbox__arrow--next {
  right: 0.75rem;
}

.catalog-assoc-lightbox__arrow[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .catalog-assoc-lightbox__arrow--prev {
    left: 0.35rem;
  }

  .catalog-assoc-lightbox__arrow--next {
    right: 0.35rem;
  }
}
