/* Fiyat teklif kartı + modal — responsive */
.price-offer-card {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}
.price-offer-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}
.price-offer-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.price-offer-card__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.55rem;
}
.price-offer-card__amounts div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.price-offer-card__amounts span {
  font-size: 0.75rem;
  color: #64748b;
}
.price-offer-card__amounts strong {
  font-size: 1rem;
}
.price-offer-badge {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.price-offer-badge--pending { background: #fef3c7; color: #92400e; }
.price-offer-badge--accepted { background: #dcfce7; color: #166534; }
.price-offer-badge--rejected { background: #fee2e2; color: #991b1b; }
.price-offer-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.price-offer-card__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.price-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 11060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.price-offer-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.price-offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.price-offer-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90dvh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1.1rem 1.15rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  transform: translateY(18px);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.price-offer-modal.is-open .price-offer-modal__sheet {
  transform: translateY(0);
}
.price-offer-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.price-offer-modal__head h3 { margin: 0; font-size: 1.1rem; }
.price-offer-modal__x {
  width: 2.1rem; height: 2.1rem; border: 0; border-radius: 999px;
  background: #f1f5f9; font-size: 1.35rem; cursor: pointer; line-height: 1;
}
.price-offer-modal__hint {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.86rem;
  color: #64748b;
}
.price-offer-modal__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.5rem 0 0.3rem;
}
.price-offer-modal__input,
.price-offer-modal__note {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}
.price-offer-modal__note { min-height: 64px; resize: vertical; }
.price-offer-modal__error {
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.price-offer-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}
body.price-offer-modal-open { overflow: hidden; }

.rental-offer-field {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.rental-offer-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.rental-offer-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.rental-offer-field small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

@media (min-width: 721px) {
  .price-offer-modal { align-items: center; padding: 1rem; }
  .price-offer-modal__sheet { border-radius: 16px; }
}
