/* ==========================================================================
   Parsel Satış Modülü - İnteraktif Parsel Seçimi
   ========================================================================== */

.parcel-selector-container {
  background: white;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  margin-bottom: 3rem;
}

.parcel-selector-header {
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2f45 100%);
  padding: 1.5rem;
  color: white;
}

.parcel-selector-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.parcel-selector-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.parcel-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.parcel-item {
  aspect-ratio: 1;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.parcel-item:hover:not(.sold):not(.reserved) {
  border-color: #2D6A4F;
  background: rgba(45, 106, 79, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.15);
}

.parcel-number {
  font-weight: 600;
  font-size: 1rem;
  color: #0D1B2A;
  margin-bottom: 0.25rem;
}

.parcel-status {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.parcel-area {
  font-size: 0.5rem;
  color: #6B7280;
  margin-top: 0.125rem;
}

.parcel-item.available .parcel-status {
  background: rgba(45, 106, 79, 0.1);
  color: #2D6A4F;
}

.parcel-item.sold {
  background: #F3F4F6;
  border-color: #D1D5DB;
  cursor: not-allowed;
  opacity: 0.6;
}

.parcel-item.sold .parcel-number {
  color: #9CA3AF;
}

.parcel-item.sold .parcel-status {
  background: rgba(13, 27, 42, 0.1);
  color: #6B7280;
}

.parcel-item.reserved {
  background: #FEF3C7;
  border-color: #FCD34D;
  cursor: not-allowed;
}

.parcel-item.reserved .parcel-status {
  background: rgba(252, 211, 77, 0.3);
  color: #92400E;
}

.parcel-item.selected {
  border-color: #2D6A4F;
  background: rgba(45, 106, 79, 0.1);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
}

.parcel-legend {
  padding: 1.5rem 2rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: #F9FAFB;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6B7280;
}

.legend-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid;
}

.legend-box.available {
  background: white;
  border-color: #E5E7EB;
}

.legend-box.sold {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.legend-box.reserved {
  background: #FEF3C7;
  border-color: #FCD34D;
}

.legend-box.selected {
  background: rgba(45, 106, 79, 0.1);
  border-color: #2D6A4F;
}

/* Parsel Detay Modal */
.parcel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 27, 42, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.parcel-modal.active {
  display: flex;
}

.parcel-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.parcel-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parcel-modal-header h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: #0D1B2A;
}

.parcel-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F3F4F6;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.parcel-modal-close:hover {
  background: #E5E7EB;
  color: #0D1B2A;
}

.parcel-modal-body {
  padding: 1.5rem;
}

.parcel-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.parcel-detail-item:last-child {
  border-bottom: none;
}

.parcel-detail-label {
  color: #6B7280;
  font-size: 0.875rem;
}

.parcel-detail-value {
  color: #0D1B2A;
  font-weight: 600;
  font-size: 0.875rem;
}

.parcel-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 0.75rem;
}

.parcel-modal-footer button {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-contact {
  background: #2D6A4F;
  color: white;
}

.btn-contact:hover {
  background: #245c43;
}

.btn-cancel {
  background: #F3F4F6;
  color: #6B7280;
}

.btn-cancel:hover {
  background: #E5E7EB;
  color: #0D1B2A;
}

/* Responsive */
@media (max-width: 768px) {
  .parcel-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
  }

  .parcel-number {
    font-size: 0.875rem;
  }

  .parcel-status {
    font-size: 0.5rem;
  }

  .parcel-legend {
    padding: 1rem;
    gap: 1rem;
  }
}
